
import * as type from './actionTypes'

const initState = [{
    id: 1,
    date: '2018-03-13',
    title: '关于食堂保洁工作的建议',
    category: '经营管理',
    name: '吴琳',
    tel: '18783226594',
    dept: '计划营销部',
    commit: '吴琳',
    commitdate: '2018-03-12 09:10:34',
    status: '部门审核'
}];

// 更新数据
const updateData = (state, action) => {
    return state
}

// 根据type执行对应的action操作
const reducerFun = (state = initState, action) => {
    switch (action.type) {
      case type.UPDATE_DATA: 
        return updateData(state, action)
      default:
        return state
    }
}

export default reducerFun;